import service from '@/utils/request'
// @Tags SpikesGoodsSkus
// @Summary 创建spikesGoodsSkus表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SpikesGoodsSkus true "创建spikesGoodsSkus表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /spikesGoodsSkus/createSpikesGoodsSkus [post]
export const createSpikesGoodsSkus = (data) => {
  return service({
    url: '/spikesGoodsSkus/createSpikesGoodsSkus',
    method: 'post',
    data
  })
}

// @Tags SpikesGoodsSkus
// @Summary 删除spikesGoodsSkus表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SpikesGoodsSkus true "删除spikesGoodsSkus表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /spikesGoodsSkus/deleteSpikesGoodsSkus [delete]
export const deleteSpikesGoodsSkus = (params) => {
  return service({
    url: '/spikesGoodsSkus/deleteSpikesGoodsSkus',
    method: 'delete',
    params
  })
}

// @Tags SpikesGoodsSkus
// @Summary 批量删除spikesGoodsSkus表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除spikesGoodsSkus表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /spikesGoodsSkus/deleteSpikesGoodsSkus [delete]
export const deleteSpikesGoodsSkusByIds = (params) => {
  return service({
    url: '/spikesGoodsSkus/deleteSpikesGoodsSkusByIds',
    method: 'delete',
    params
  })
}

// @Tags SpikesGoodsSkus
// @Summary 更新spikesGoodsSkus表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SpikesGoodsSkus true "更新spikesGoodsSkus表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /spikesGoodsSkus/updateSpikesGoodsSkus [put]
export const updateSpikesGoodsSkus = (data) => {
  return service({
    url: '/spikesGoodsSkus/updateSpikesGoodsSkus',
    method: 'put',
    data
  })
}

// @Tags SpikesGoodsSkus
// @Summary 用id查询spikesGoodsSkus表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.SpikesGoodsSkus true "用id查询spikesGoodsSkus表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /spikesGoodsSkus/findSpikesGoodsSkus [get]
export const findSpikesGoodsSkus = (params) => {
  return service({
    url: '/spikesGoodsSkus/findSpikesGoodsSkus',
    method: 'get',
    params
  })
}

// @Tags SpikesGoodsSkus
// @Summary 分页获取spikesGoodsSkus表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取spikesGoodsSkus表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /spikesGoodsSkus/getSpikesGoodsSkusList [get]
export const getSpikesGoodsSkusList = (params) => {
  return service({
    url: '/spikesGoodsSkus/getSpikesGoodsSkusList',
    method: 'get',
    params
  })
}

// @Tags SpikesGoodsSkus
// @Summary 不需要鉴权的spikesGoodsSkus表接口
// @accept application/json
// @Produce application/json
// @Param data query spikes_goods_skuReq.SpikesGoodsSkusSearch true "分页获取spikesGoodsSkus表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /spikesGoodsSkus/getSpikesGoodsSkusPublic [get]
export const getSpikesGoodsSkusPublic = () => {
  return service({
    url: '/spikesGoodsSkus/getSpikesGoodsSkusPublic',
    method: 'get',
  })
}
